<div style="height:auto;width:100%">
<form>       

<table id='frmuser_tblinfo' width="100%" class="tblInfo">
<tr>
<td class="width25" height="400" valign="top" id="frmuser_tdleft" >

<table width="100%" class="info" id="frmuser_table_sumit">
<tr><td>
<div id="frmuser_divleft" class="divleft">
<fieldset>
<legend>Thông tin chung </legend>
<table class="width100">
    <tr>
    <td class="lblRequired width25">
    Tên đăng nhập 
    </td>
    <td >
    <input type="text"   maxlength="64" id="frmuser_txtAddUsername" name="txtAddUsername" value="" class="txtRequired isName" />

    </td>
    </tr>
    <tr>
    <td width="300" class="lblRequired">
    Loại Quyền
    </td>
    <td id="frmuser_tdPowertype">
    <select id="frmuser_cbbPowerType" class="cbbRequired" name="frmuser_cbbPowerType">                
        <option value="">--Chọn--</option>
    </select>
    </td>
    </tr>
    
    </table>
</fieldset>
<fieldset>
<legend>Thông tin chi tiết</legend>
    <table class="width100">
    <tr>
    <td>
    Email 
    </td>
    <td>
    <input type="text" maxlength="255" id="frmuser_txtEmail" name="txtEmail" value="" class="txtRequired isEmail" />

    </td>
    </tr>
    <tr>
    <td class="lblRequired">
    Địa chỉ 
    </td>
    <td>
    <input type="text" maxlength="255" id="frmuser_txtAddress" name="txtAddress" value="" class="txtRequired isName" />
    </td>
    </tr>
    <tr >
    <td class="lblRequired">
    Điện thoại
    </td>
    <td>
    <input type="text" id="frmuser_txtPhone" maxlength="32" name="txtPhone" value="" class="txtRequired isNumber" />
     
    </td>
    </tr>
 
</table>
</fieldset>
<div class="divactionbuton">
       <input type="hidden" id="frmuser_hdEdit" value="0"/>
<input type="hidden" id="frmuser_hdId" value=""/>
<button class="save validate btnsave" id="frmuser_submit" type="button"> Thêm Mới </button> 
<button class="clear" type="reset" id="clear"> Nhập Lại </button> 

</div>
</div>
</td></tr>
        
</table>
</td>
<td class="clsmiddle" id="frmuser_tdmiddle"></td>
<td>
<div id="frmuser_divGrid" class="divGrid">       
</div></td>
<td class="clsend"></td>
</tr>
</table>    
        <input type="hidden" name="hidMethod" id="frmuser_hidMethod" value="add">
    <input type="hidden" name="hidID" id="frmuser_hidID" value="">  
    </form>       
            
    </div>

<script language="javascript" src="script/js.const.js" >
</script>
   
<script language="javascript">
$(document).ready(function () {
    initForm('frmuser_tblinfo');
    initDivleft();
});
//function initTable(){     
//     $("#tableOne").tablesorter({ debug :false, sortList: [[0, 0]], widgets: ['zebra', 'columnHighlight'] })
//                .tablesorterPager({ container :$("#pagerOne"), position:fixed false });
//     
// }
// $('#frmuser_submit').click(function(){

//     if(!checkValidate1(this)){
//         return false;
//     }
//   
//     
// });
// 
//function fn_changePowerType(type_id){
//    xajax_loadPower(type_id);
//}
//function changMode(value){
//    if(value==1){
//      $('#AddType').css('display','none'); 
//      $('#SearchType').css('display',''); 
//    }else{
//      $('#AddType').css('display',''); 
//      $('#SearchType').css('display','none');   
//    }
//}
//function SaveUser(){
//    var arrParams = new Array();
//    arrParams['txtAddUsername']=$.trim($('#frmuser_txtAddUsername').val());
//    arrParams['txtPassword']=$.trim($('#frmuser_txtPassword').val());
//    arrParams['frmuser_cbbPowerType']=$.trim($('#frmuser_cbbPowerType').val());
//    arrParams['cbbRoles']=$.trim($('#frmuser_cbbRoles').val());
//    arrParams['txtEmail']=$.trim($('#frmuser_txtEmail').val());
//    arrParams['cbbCity']=$.trim($('#frmuser_cbbCity').val());
//    arrParams['txtAddress']=$.trim($('#frmuser_txtAddress').val());
//    arrParams['txtPhone']=$.trim($('#frmuser_txtPhone').val());
//    arrParams['chkActive']=$('#frmuser_chkActive').attr('checked')?10;
//    xajax_SaveUser(arrParams);
//}
//function ActiveItem(id){
//    xajax_ActiveItem(id);
//}
//function changeStatus(id){
//   if($('#imgactive'+id).attr('title')=='Bỏ kích hoạt'){
//      $('#imgactive'+id).attr('src','images/icons/icon-deactivated.gif') ;
//      $('#imgactive'+id).attr('title','Kích hoạt') ;
//   }else{
//      $('#imgactive'+id).attr('src','images/icons/icon-active.gif') ;
//      $('#imgactive'+id).attr('title','Bỏ kích hoạt') ; 
//   }
//}
//function changePass(obj,id){
//    var td = $(obj).parent();
//    var txt =  "<input type='password' id='frmuser_txtPass"+id+"' style='width:70px'></br><img src='adagps.com/images/menu/save.png' style='cursor: pointer;float:right;' onclick='changeConfirm(this,"+id+")' /> <img src='adagps.com/images/menu/undo.png' style='cursor: pointer;float:right;' onclick='undoChange(this,"+id+")' /> ";
//    $(td).html(txt); 
//    
//}
//function changeConfirm(obj,id){
//    var td = $(obj).parent();
//    var newpass = $.trim($('#frmuser_txtPass'+id).val());
//    if(newpass.length<6){
//        alert('Vui Long nhap MK hon 6 ki tu');
//        return false;
//    }
//    changeWaiting(0);
//    xajax_frmuser_changePass(newpass,id);
//    var imgChange = '<img src="adagps.com/images/menu/changepass.png" title="Đổi mật khẩu" style="cursor: pointer;" class="changePass" onclick="changePass(this,'+id+')" />';
//    $(td).html(imgChange);
//}

//function undoChange(obj,id){
//    var td = $(obj).parent();
//    var imgChange = '<img src="adagps.com/images/menu/changepass.png" title="Đổi mật khẩu" style="cursor: pointer;" class="changePass" onclick="changePass(this,'+id+')" />';
//    $(td).html(imgChange);  
//}
xajax_frmuser_init();
changeWaiting(0);
xajax_frmuser_loadGrid();
 
</script>